package com.allenkerr.dao;

import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;

import com.allenkerr.common.SequenceException;
import com.allenkerr.model.Todo;

/**
 * Created by 小柯 on 2017/10/16.
 */
public interface TodoRepositoryCustom {

  /**
   * 保存待办事项，通过 sequence 获取 自增 id 值
   */
  Todo saveOne(Todo todo2Save) throws SequenceException;

  int update(Query query, Update update);

}
